//
//  CombinedOrderProtocol.swift
//  Pods
//
//  Created by eme on 2017/4/7.
//
//

import UIKit


protocol CombinedOrderProtocol{
    func combinedOrderEvent(vc:UIViewController,type:String,model:[PayArrayModel],payid:String)
}
extension CombinedOrderProtocol{
    
    func combinedOrderEvent(vc:UIViewController,type:String,model:[PayArrayModel],payid:String){
        let bouncedVc:BouncedVc = SansaCore.storyboard.instantiateViewController()
        if type == "fk"{
            bouncedVc.contentModelArr = model
            bouncedVc.payid = payid
            bouncedVc.titletype = "付款"
            bouncedVc.type = type
            bouncedVc.view.backgroundColor = UIColor.clear
            vc.present(bouncedVc, animated: true, completion: nil)
        }else{
            bouncedVc.contentModelArr = model
            bouncedVc.payid = payid
            bouncedVc.titletype = "取消"
            bouncedVc.type = type
            bouncedVc.view.backgroundColor = UIColor.clear
            vc.present(bouncedVc, animated: true, completion: nil)
        }
    }
}
